
<template>
  <ex_select_auto ref="main" :option="this.option" storeData :placeholder="$tt('tip_please_select_warehouse_area')"
    url="/wms-api/base/WmsBaseAreaRpc/selectAllLabel.json" :value="value" v-bind="$attrs" @input="onInput"
    @change="onChange" @changeItem="onChangeItem" :urlParams="urlParams" />
</template>

<script>

export default {
  name: 'base_area_select',
  props: {
    value: null,
    option: {
      type: Object,
      default: () => ({ label: 'labelStr', value: 'id' })
    },
    typeList: {
      type: Array,
      default: () => __JAVA_ENUM_OPTIONS__['BaseAreaTypeEnum'].filter(it => !['AUTO'].includes(it))
    },
  },
  watch: {
  },
  methods: {
    urlParams() {
      return {  }
    },
    onInput(e) {
      this.$emit('input', e)
    },
    onChange(e) {
      this.$emit('change', e)
    },
    onChangeItem(e) {
      this.$emit('changeItem', e)
    },
  },
}
</script>
